﻿using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;

namespace TravelServer.DTOs
{
    public class RegisterDto
    {
        [Required]
        public string Email {  get; set; }
        [Required]
        public string Password { get; set; }
        [Required]
        [Compare(nameof(Password),ErrorMessage ="验证密码与密码不一致！")]
        public string ConfirmPassword {  get; set; }
    }
}



